package cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.factory;

import cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.contreteInsurance.PingAnAutomobileDamage;
import cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.contreteInsurance.PingAnDriverInjured;
import cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.contreteInsurance.PingAnMultipleAccidents;
import cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.contreteInsurance.PingAnPersonalCasualty;
import cn.edu.scau.cmi.wujiaming.experiment3.abstractFactory.insuracne.Insurance;

public class PingAnFactory extends CompanyFactory {
	@Override
	public Insurance getAutomobileDamage() {
		return new PingAnAutomobileDamage();
	}

	@Override
	public Insurance getDriverInjured() {
		return new PingAnDriverInjured();
	}

	@Override
	public Insurance getMultipleAccidents() {
		return new PingAnMultipleAccidents();
	}

	@Override
	public Insurance getPersonalCasualty() {
		return new PingAnPersonalCasualty();
	}
}	
